package com.lwy.setter.enums;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 主数据枚举注册
 */
@Component
public class BaseDataEnumRegistry {
    static {
        CnEnumCache.register(TypeEnum.class);

    }

    @Bean
    @PostConstruct
    public BaseDataEnumRegistry coreEnumRegistry() {
        return new BaseDataEnumRegistry();
    }
}
